﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmptyLocationRptList.aspx.cs" EnableViewState="false" EnableEventValidation = "false" Inherits="WMS6.Web.Analytics.EmptyLocationRptList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Analytics/EmptyLocationRptQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>EmptyLocationRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
     <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/checkbox.js" type="text/javascript"></script>    
    <script type="text/javascript">
    
      window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "EmptyLocationRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>
</head>
<body>
    <form id="F15231" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblReceiptInquiryList" runat="server" CssClass="label_header"  Text="空货位报告" meta:resourcekey="lblUom"></asp:Label></td>
                      <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" 
                              Text="<%$Resources:ButtonResource,btnRefresh%>"  
                              onclick="btnRefresh_Click" /></td>
                    </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                
                <div id="div_List">
                <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                        <asp:GridView ID="gvLoc" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" DataKeyNames="LOC" PageSize="20" Width="1250px"  OnSorting="gvLoc_Sorting" oninit="gvLoc_Init" 
                            onrowdatabound="gvLoc_RowDataBound" meta:resourcekey="gvLoc" >
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                            <Columns>
                                <asp:BoundField HeaderText="序号" FooterText="序号" 
                                    meta:resourcekey="BoundField">
                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                </asp:BoundField>
                                
                                <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15231','gvLoc');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvLoc');" 
                                        meta:resourcekey="CheckBox1" /> 
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvLoc');" 
                                        meta:resourcekey="CheckBox2" /> 
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                            </asp:TemplateField>
                            
                                <asp:BoundField DataField="LOC" HeaderText="货位" FooterText="货位" 
                                    SortExpression="LOC" meta:resourcekey="LOC">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="LOGICAL_LOC" HeaderText="路线顺序" FooterText="路线顺序" 
                                    SortExpression="LOGICAL_LOC" meta:resourcekey="LOGICAL_LOC">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="T_LOC_USAGE" HeaderText="货位用途" FooterText="货位用途" 
                                    SortExpression="T_LOC_USAGE" meta:resourcekey="T_LOC_USAGE">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="T_LOC_FLAG" HeaderText="货位属性" FooterText="货位属性" 
                                    SortExpression="T_LOC_FLAG" meta:resourcekey="T_LOC_FLAG">
                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                </asp:BoundField>
                                <asp:BoundField DataField="T_STATUS" HeaderText="状态" FooterText="状态" 
                                    SortExpression="T_STATUS" meta:resourcekey="T_STATUS">
                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                </asp:BoundField>
                                <asp:BoundField DataField="T_ABC" HeaderText="周转类型" FooterText="周转类型" 
                                    SortExpression="T_ABC" meta:resourcekey="T_ABC">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="IS_MULTI_SKU" HeaderText="货品混放" FooterText="货品混放" 
                                    SortExpression="IS_MULTI_SKU" meta:resourcekey="IS_MULTI_SKU">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CHECK_DIG" HeaderText="校验位" FooterText="校验位" 
                                    SortExpression="CHECK_DIG" meta:resourcekey="CHECK_DIG">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:TemplateField FooterText="容积" HeaderText="容积" 
                                SortExpression="CUBIC_CAPACITY" meta:resourcekey="CUBIC_CAPACITY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCubicCapacity" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("CUBIC_CAPACITY").ToString()) %>' 
                                            meta:resourcekey="lblCubicCapacity"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                  <asp:TemplateField FooterText="载重" HeaderText="载重" 
                                SortExpression="WEIGHT_CAPACITY" meta:resourcekey="WEIGHT_CAPACITY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblWeightCapacity" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("WEIGHT_CAPACITY").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:TemplateField>        
                            </Columns>
                        </asp:GridView>
                         <div>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                              <td>
                                                <asp:Label ID="lblTotalCubicCapacity" runat="server" Text="容积:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalCubicCapacityText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalWeightCapacity" runat="server" Text="载重:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalWeightCapacityText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                                                                    
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                 </div>
                 <div id="div_pager">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                    </div>
                    <input type="hidden" runat="server" id="hdnFrom" />
            </ContentTemplate>
         </asp:UpdatePanel>
        
        
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:window.location.href='EmptyLocationRptQuery.aspx';return false;" 
                             />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:returnSearch();return false;" 
                             />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button" Enabled="False" 
                           onclick="btnList_Click"   />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button" Enabled="False" 
                             onclick="btnExport_Click"     />
                    </td>
                </tr>
            </table>
        </div>      
        
    </div>
    </form>
</body>
</html>
